package com.luckku.boot.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.luckku.boot.model.entity.Cart;
import com.luckku.boot.model.vo.CartInfoVo;
import com.luckku.boot.model.vo.CartVo;

import java.util.List;

/**
 * @author luckku
 * @date 2021/12/13
 */

public interface ICartService extends IService<Cart> {

    /**
     * 获取用户购物车(类内调用)
     */
    List<CartVo> getCartById(String userId, String storeId);

    /**
     * 获取用户购物车
     */
    CartInfoVo getUserCart(String userId, String storeId);

    /**
     * /cart/cleanCart
     * 清空购物车
     */
    void deleteCart(String userId, String storeId);
}
